package com.tx.blog.article.dao;

import com.tx.blog.article.vo.ArticleTypeVo;
import com.tx.blog.article.vo.ArticleVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author tx
 * @description
 * @date  2019/4/26 16:20
 * @param  * @Param: null
 * @return
**/
@Repository
public interface IArticleDao {

    List<ArticleVo> findAll(String userId);

    void saveArticle(ArticleVo articleVo);

    void deleteArticle(ArticleVo articleVo);

    void updateArticle(ArticleVo articleVo);

    ArticleVo findArticle(String articleId);

    void addNewType(ArticleTypeVo articleTypeVo);

    List<ArticleTypeVo> findAllArticleType(String userId);
}
